<script src="./static/My97DatePicker/WdatePicker.js"></script>
<div class="box1">
    <h2>手机借用</h2>
    <form action="" method="post" id="form">
        <div class="form-control">
            <label for="">借出/归还</label>
            <select id="type">
                <option value="1">借出</option>
                <option value="2">归还</option>
            </select>
        </div>
        <div class="form-control">
            <label for="">用户名</label><input class="text-input" type="text" name="borrow_user">
        </div>
        <div class="form-control select-mobile">
            <label for="">选择手机</label>
            <select class="j-os">
                <option value="">-- 请选择系统 --</option>
                <?php foreach (\app\models\Mobile::os() as $key => $os) { ?>
                    <option value="<?= $key ?>"><?= $os ?></option>
                <?php } ?>
            </select>
            <select class="j-models">
                <option value="">-- 请选择型号 --</option>
            </select>
            <select name="mobile_id" class="j-mobile-id">
                <option value="">-- 请选择编号 --</option>
            </select>
        </div>
        <div class="form-control borrow">
            <label for="" class="borrow">归还日期</label>
            <input class="text-input" onclick="WdatePicker()" type="text" name="should_return_time">
        </div>
        <div class="form-control return none">
            <label for="" class="return">应归还日期</label>
            <input class="text-input should-return-time" readonly>
            <span class="is-expire red none">您已逾期</span>
        </div>
        <div class="form-control">
            <button>提交</button>
            <button type="button" class="return" onclick="backTo()">返回</button>
        </div>
    </form>
</div>
<script>
    formSubmit($('#form'), '?c=mobileBorrow&a=index');
</script>
